#include "idt.h"
#include "isr.h"

void idtFill() {
int i;for(i=0;i<33;i++){
	idt[i].offset_0_15 = (unsigned short) ((unsigned int)(&_inop) & (unsigned int) 0xFFFF);
	idt[i].segsel = (unsigned short) 0x0008;
	idt[i].attr = (unsigned short) 0x8E00;
	idt[i].offset_16_31 = (unsigned short) ((unsigned int)(&_inop) >> 16 & (unsigned int) 0xFFFF);
}
	
	idt[33].offset_0_15 = (unsigned short) ((unsigned int)(&_i9h) & (unsigned int) 0xFFFF);
	idt[33].segsel = (unsigned short) 0x0008;
	idt[33].attr = (unsigned short) 0x8E00;
	idt[33].offset_16_31 = (unsigned short) ((unsigned int)(&_i9h) >> 16 & (unsigned int) 0xFFFF);
}

idt_entry idt[255] = {};
idt_descriptor IDT_DESC = {sizeof(idt)-1, (unsigned int)&idt};
